//
//  ImageUploader.h
//  GolfFriend
//
//  Created by vescky on 13-12-19.
//  Copyright (c) 2013年 vescky.org. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "../../Libs/QiniuSDK/QiniuUploadDelegate.h"
#import "../../Libs/QiniuSDK/QiniuSimpleUploader.h"
#import "../../Libs/QiniuSDK/GTMBase64/GTMBase64.h"
#import "../../Libs/QiniuSDK/QiniuSimpleUploader.h"

@protocol ImageUploaderDelegate <NSObject>

- (void)imageUploaderProcessUpdated:(NSString *)filePath percent:(float)percent;
- (void)uploadSuccess:(NSString *)filePath ret:(NSDictionary *)ret;
- (void)uploadFail:(NSString *)filePath error:(NSError *)error;

@end

@interface ImageUploader : NSObject <QiniuUploadDelegate> {
    
}

@property (nonatomic,assign) id <ImageUploaderDelegate> delegate;

+ (id)shareImageUploader;

- (bool)uploadImage:(NSString*)imgPath;

- (bool)uploadImage:(NSString*)imgPath asName:(NSString*)fileName;

- (bool)uploadImageQueue:(NSArray*)imgList;//{dict,dict} {imgPath: asName:}

@end
